<?php
class DAO
{
	private $conn;
	private $databaseSelected;
	
	function __construct()
	{
		$this->conn = mysql_connect();
        $this->databaseSelected = mysql_select_db(DB_NAME);
        
        if(!$this->conn || !$this->databaseSelected)
        {
            die('Database connection error in DAO');
        }
	}
}
?>